From: Ian Jackson Date: Thu, 12 Apr 2018 17:06:45 +0000 (+0100) Subject: docs/parse-support-md: internals: Introduce docref_a X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~168 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=73e6ad7ee8322eca7eb96fc777e303442eb13e80;p=xen.git docs/parse-support-md: internals: Introduce docref_a No functional change. Signed-off-by: Ian Jackson Release-acked-by: Juergen Gross --- diff --git a/docs/parse-support-md b/docs/parse-support-md index decda33fb6..5bf8405206 100755 --- a/docs/parse-support-md +++ b/docs/parse-support-md @@ -318,6 +318,12 @@ sub o { print @_ or die $!; } our @pending_headings; +sub docref_a ($$) { + my ($i, $realsect) = @_; + return sprintf '', + $version_urls[$i], $realsect->{Anchor}; +} + sub write_output_row ($) { my ($sectnode) = @_; # print STDERR 'WOR ', Dumper($d, $sectnode); @@ -364,8 +370,8 @@ sub write_output_row ($) { && $sectnode->{RealSect}{Anchor}) { my $rows = $sectnode->{RealSect}{Rows}; $nextcell = sprintf '', $rows; - $nextcell .= sprintf '[*]', - $version_urls[$i], $sectnode->{RealSect}{Anchor}; + $nextcell .= docref_a $i, $sectnode->{RealSect}; + $nextcell .= '[*]'; $nextcell .= ''; $colspan = ''; }